package com.iris.live.services.data.models;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Created by ThinkPad on 2016/10/25.
 */
public class Lsh活动类型附属ModelPK implements Serializable {
    private Integer 活动类型编号;
    private Integer kpi编号;

    @Column(name = "活动类型编号")
    @Id
    public Integer get活动类型编号() {
        return 活动类型编号;
    }

    public void set活动类型编号(Integer 活动类型编号) {
        this.活动类型编号 = 活动类型编号;
    }

    @Column(name = "KPI编号")
    @Id
    public Integer getKpi编号() {
        return kpi编号;
    }

    public void setKpi编号(Integer kpi编号) {
        this.kpi编号 = kpi编号;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Lsh活动类型附属ModelPK that = (Lsh活动类型附属ModelPK) o;

        if (活动类型编号 != that.活动类型编号) return false;
        if (kpi编号 != that.kpi编号) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 活动类型编号;
        result = 31 * result + kpi编号;
        return result;
    }
}
